Primitives
In MCP (Model Context Protocol), primitives are the fundamental building blocks that define how servers and clients can expose and interact with capabilities. There are three core primitives:
- Resources: Expose data or content (files, database entries, API responses) that can be read by the client or used as context for the model.
- Tools: Executable functions the model can call to perform actions or retrieve dynamic information (e.g., run a query, call an API).
- Prompts: Pre-defined prompt templates or workflows that servers expose to clients for reuse.